<?php

declare(strict_types=1);
/**
 * This file is part of habo_new_media.
 *
 * @link     https://www.berlen.cn/
 * @contact  tech@berlen.cn
 * @license  http://gitlab.rehou.cn/habo/habo_new_media/-/blob/master/README.md
 */
namespace app\service\cdc\cost\pull;

interface PullInterface
{
    /**
     * 判断服务.
     */
    public function isResponseSuccess(): bool;

    /**
     * 获取请求头部.
     * @return array|bool
     */
    public function getHeader(string $token = '');

    /**
     * 获取返回码.
     * @return mixed
     */
    public function getResponseCode();

    /**
     * 获取返回错误信息.
     * @return mixed
     */
    public function getResponseMsg();

    /**
     * 获取返回体.
     * @return mixed
     */
    public function getResponseData(array $args = []);

    /**
     * 获取媒体.
     */
    public function getMediaId(): int;


    /**
     * 判断返回是否为空.
     * @return mixed
     */
    public function isResponseEmpty();

}
